package se.jocke.nbrs.model;

import java.util.List;

/**
 *
 * @author jocke
 */
public class RestServiceGroups {

    private List<RestServiceGroup> groups;

    public RestServiceGroups() {
    }

    public RestServiceGroups(List<RestServiceGroup> groups) {
        this.groups = groups;
    }

    public List<RestServiceGroup> getGroups() {
        return groups;
    }

    public void setGroups(List<RestServiceGroup> groups) {
        this.groups = groups;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 53 * hash + (this.groups != null ? this.groups.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final RestServiceGroups other = (RestServiceGroups) obj;
        return this.groups == other.groups || (this.groups != null && this.groups.equals(other.groups));
    }

    @Override
    public String toString() {
        return "RestServiceGroups{" + "groups=" + groups + '}';
    }

}
